﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pass.aspx.cs" Inherits="AnyOffice.general.person_info.pass" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>修改密码</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script Language="JavaScript">
		
function CheckForm()
{
   /*
   if(document.Form1.txtOLdPass.value=="")
   {
		alert("请填写原密码！");   
		document.Form1.txtOLdPass.focus();
		return (false);
   }
   */
   
  if(document.Form1.txtNewPass.value=="")
   {
		alert("请填写新密码！");   
		document.Form1.txtNewPass.focus();
		return (false);
   }
   
    if (document.Form1.txtNewPass2.value=="")
   {
		alert("请填写确认新密码！");   
		document.Form1.txtNewPass2.focus();
		return (false);
   }
    if (document.Form1.txtNewPass.value != document.Form1.txtNewPass2.value)
   {
		alert("两次密码输入不同！");
		return (false);
   }

 return true;
}
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">	
         <div class="main_div">		
			<asp:Panel id="pnlMain" runat="server">
			<table border="0" width="90%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/login.gif" align="absMiddle"><span class="big3">
							修改密码</span><br>
					</td>
				</tr>
			</table>
				<TABLE width="500" cellSpacing="0" cellPadding="0" border="0" class="tab_pub" align="center">
					<TR>
						<TD class="TableData" width="150">用户名：</TD>
						<TD class="ta_txt">
							<asp:Literal id="litCurrentUserId" runat="server"></asp:Literal></TD>
					</TR>
					<TR>
						<TD class="TableData">原密码：</TD>
						<TD class="ta_txt">
							<asp:TextBox id="txtOldPass" runat="server" Columns="15" MaxLength="20" CssClass="BigInput" TextMode="Password"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="TableData">新密码：</TD>
						<TD class="ta_txt">
							<asp:TextBox id="txtNewPass" runat="server" Columns="15" MaxLength="20" CssClass="BigInput" TextMode="Password"></asp:TextBox>6-20位
						</TD>
					</TR>
					<TR>
						<TD class="TableData">确认新密码：</TD>
						<TD class="ta_txt">
							<asp:TextBox id="txtNewPass2" runat="server" Columns="15" MaxLength="20" CssClass="BigInput"
								TextMode="Password"></asp:TextBox>6-20位
						</TD>
					</TR>
					<TR align="center">
						<TD class="bnt_con" colSpan="2">
						    <table width="140" cellpadding="0" cellspacing="0" border="0" style="border:none;">
							  <tr>
							    <td align="left" style="border:none;"><INPUT class="bnt02" onClick="return CheckForm();" type="submit" value="保存修改"></td>
								<td align="right" style="border:none;"><INPUT class="bnt01" onClick="location='index.aspx'" type="button" value="返 回"></td>
							  </tr>
							</table>
							</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
            </div>
		</form>
	</body>
</HTML>
